<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title?></title>
<?php echo $header;?>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="table_top_left" width="17" valign="top"></td>
    <td class="table_top_middle" valign="top">
		<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31" align="left"><div class="titlebt"><?php echo $page_label?></div></td>
      </tr>
    </table>
	</td>
    <td class="table_top_right" width="16" valign="top"></td>
  </tr>
  <tr>
    <td class="table_left_side" height="71" valign="middle"></td>
    <td valign="top" bgcolor="#F7F8F9">
		<table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top">
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td align="left" class="left_txt"><?php echo $nav_label,$title?></td>
          </tr>
          <tr>
            <td >
			<form id="f_link" name="f_link" method="post" action="<?php echo base_url('friend_link/edit_action'); ?>">
			  <table width="100%" class="list" cellpadding="0" style="border-collapse: collapse" border="1" bordercolor="#BFC4CA">
			  <tr>
				 <th colspan="2" height="25" bgcolor="#EEF2FB"><?php echo $title;?></th>
			  </tr>
			  <tr>
				 <td width="18%" height="25" align="right"><?php echo lang('link_website');?></td>
				 <td width="83%" height="25" align="left"><input name="website" type="text" id="website" value="<?php echo $link['website']?>" size="30" maxlength="20" />
			<span class="tip">* <?php printf(lang('com_tip_word_limit'), 20);?></span></td>
			  </tr>
				<tr>
				   <td align="right" height="25"><?php echo lang('link_linkpath');?></td>
				   <td height="25" align="left"><input name="linkpath" type="text" id="linkpath" value="<?php echo $link['linkpath']?>" size="50" maxlength="200" />
			<span class="tip">* <?php echo lang('link_linkpath_tip');?></span></td>
				   </tr>
				<tr>
				   <td align="right" height="25"><?php echo lang('link_sort');?></td>
				   <td height="25" align="left"><input name="sort" type="text" id="sort" value="<?php echo $link['sort']?>" size="5" maxlength="3" />
					  <span class="tip">* <?php echo lang('link_sort_tip');?></span></td>
				   </tr>
				<tr>
				   <td align="right" height="25"><?php echo lang('link_isactive');?></td>
				   <td height="25" align="left"><input name="isactive" type="radio" value="1" <?php if($link['isactive']==1) echo 'checked="checked"';?> /> 
					  <?php echo lang('link_isactive_1');?>
					  <input type="radio" name="isactive" value="0" <?php if($link['isactive']==0) echo 'checked="checked"';?>/>
					  <?php echo lang('link_isactive_0');?>
					  <span class="tip">*</span></td>
				   </tr>
				<tr>
				   <td align="right"><?php echo lang('link_remark');?></td>
				   <td align="left"><input name="remark" type="text" id="remark" value="<?php echo $link['remark']?>" size="30"
				maxlength="50" /><span class="tip"><?php echo lang('com_tip_admin_visible');?></span></td>
				   </tr>
			
			  <tr><td colspan="2" height="25"><input name="s_edit_action" type="submit" class="button" id="s_edit_action" value="<?php echo lang('com_button_edit');?>" />
					<input name="Submit2" type="reset" class="button" value="<?php echo lang('com_button_reset');?>" />
					<input name="id" type="hidden" id="id" value="<?php echo $link['id']?>" />
			</td>
			  </tr>
			  </table>
			</form>
            </td>
          </tr>
          </table>
          </td>
      </tr>
    </table>
	</td>
    <td class="table_right_side"></td>
  </tr>
  <tr>
    <td valign="middle" class="table_bottom_left">&nbsp;</td>
    <td height="17" valign="top" class="table_bottom_middle">&nbsp;</td>
    <td class="table_bottom_right">&nbsp;</td>
  </tr>
</table>
</body>
</html>
